package com.tian.hello.ui;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;

import com.prim.find.by.ManagerFindByAptActivity;
import com.test.annotation.BYView;
import com.test.annotation.DIActivity;
import com.tian.hello.R;

@DIActivity()
public class AptActivity extends AppCompatActivity {

    @BYView(R.id.button_first)
    public Button testButton;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_apt);

        Toolbar toolbar = findViewById(R.id.toolbar);
        setSupportActionBar(toolbar);
        toolbar.setTitle("Apt测试");

        ManagerFindByAptActivity.findById(this);

        testButton.setOnClickListener(v -> {
            Toast.makeText(this, "我是apt进行初始化的按钮", Toast.LENGTH_LONG).show();
        });
    }

}